package net.zdreamer.geracomium.ui.more;

import android.os.Bundle;
import android.widget.GridView;
import android.widget.SimpleAdapter;

import com.example.geracomium.R;

import net.zdreamer.geracomium.adapter.QueryPhotoAdapter;
import net.zdreamer.geracomium.entity.PhotoInfos;
import net.zdreamer.geracomium.ui.BaseActivity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class QueryPhotoActivity extends BaseActivity {
    private GridView photogrid;
    private QueryPhotoAdapter madapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int getContentView() {
        return R.layout.activity_query_photo;
    }

    @Override
    protected void init() {
        initTitle("照片查询", R.drawable.selector_title_back, 0, true, false);
        photogrid = (GridView) findViewById(R.id.gride_photo);
        PhotoInfos photoinfos = new PhotoInfos();
        madapter = new QueryPhotoAdapter(QueryPhotoActivity.this, photoinfos.photoinfos, R.layout.grid_photoinfo);
        photogrid.setOnItemClickListener(madapter);
        photogrid.setAdapter(madapter);


    }

    @Override
    protected void initViews() {

    }

    @Override
    protected void initListener() {

    }


}
